Repository navigation
feat(search): add Sofya as a search provider - #6715
Open
yusufgurdogan wants to merge 1 commit into
Open
yusufgurdogan wants to merge 1 commit into
yusufgurdogan wants to merge 1 commit into
Conversation
yusufgurdogan
force-pushed
the
feat/sofya-search-provider
branch
from
November 15, 2026 10:49
04332f4 to
6a40cd8
Compare
Opt-in provider beside Tavily and Serper. Requests the snippets depth, since Odysseus fetches the pages it keeps itself, and maps the day/week/month/year time filter to Sofya's freshness. Key from Settings or SOFYA_API_KEY. Fixes odysseus-dev#6431
yusufgurdogan
force-pushed
the
feat/sofya-search-provider
branch
from
November 30, 2026 20:34
6a40cd8 to
8098f58
Compare
3 tasks done
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Sofya as an opt-in search provider next to Tavily and Serper, as proposed in #6431. It's one provider function in
services/search/providers.py, one dispatch branch incore.py, the API key setting, and the provider in the Settings and Deep Research pickers. It requests Sofya'ssnippetsdepth because Odysseus fetches the pages it keeps itself, and it maps the day/week/month/year time filter to Sofya'sfreshness. SearXNG stays the default and nothing changes unless someone picks Sofya. Disclosure: I built Sofya.Target branch
labin the private maintainer-preview repository, ordevin the public repository.mainremains release-curated.Linked Issue
Fixes #6431
Type of Change
Checklist
labin maintainer-preview;devin the public repository)docker compose uporuvicorn app:app) and verified the change works end-to-end. Type-checks and unit tests are not enough.How to Test
pytest tests/test_sofya_search_provider.py tests/test_search_provider_json.py tests/test_search_config_provider_key.py. These are mocked httpx tests with no network. They cover the request shape and result mapping, a missing key, the env key, null fields, 429 and network errors returning empty, 401/402/503 raising like Tavily and Serper so the caller retries and records the error, malformed JSON, dispatch, and saving and loading the key through/api/auth/settings.POST https://sofya.co/v1/search ... 200and the answer cites the fetched sources.The full suite fails the same 174 tests on this branch as on a clean
devcheckout here, all environmental (no node or bubblewrap on this host), and the 12 new tests pass.node --checkandscripts/check_frontend.mjspass.Visual / UI changes — REQUIRED if you touched anything that renders
The only UI changes are a new option in the two existing provider pickers, a hint line, a key placeholder, and a monochrome SVG mark in
searchProviderIcons.js. I used an agent to help write it, so I opened #6431 first as CONTRIBUTING asks.Screenshots / clips